package cn.edu.ujn.lishlab3.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;


public interface UserMapper {
    int deleteByPrimaryKey(Integer userId);

    int insert(User row);

    int insertSelective(User row);

    User selectByPrimaryKey(Integer userId);
    
    User selectByUserCode(String userCode);

    int updateByPrimaryKeySelective(User row);
    
    int updateByUserCodeSelective(User row);

    int updateByPrimaryKey(User row);
    
    User findUserByCodeAndPassword(@Param("usercode") String usercode, @Param("password") String password); 
    
    List<User> selectUserList(User user);
    
    int selectUserCount();
    
    public int updateUser(User user);
}